import React from 'react';
import { connect } from 'dva';
import styles from './MyWork.css';
import { Layout } from 'antd';
import MyMenu from '../../components/layout/MyMenu';
const { Sider, Content } = Layout;
function MyWork({ children }) {
  return (
    <Layout>
      <Sider className={styles.leftMenu}>
        <MyMenu />
      </Sider>
      <Content style={{ margin: '8px', padding: 10 }}>
        {children}
      </Content>
    </Layout>
  );
}

function mapStateToProps() {
  return {};
}

export default connect(mapStateToProps)(MyWork);
